#ifndef PHRASECREATOR_H
#define PHRASECREATOR_H

#include <QtGui/QDialog>
#include "includes/phrase.h"
#include <Phonon>

namespace Ui {
    class PhraseCreator;
}

class PhraseCreator : public QDialog {
    Q_OBJECT
public:
    PhraseCreator(QWidget *parent = 0);
    PhraseCreator(QWidget *parent, Phrase& p);
    ~PhraseCreator();
    Phrase& getPhrase();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::PhraseCreator *m_ui;
    Phrase phrase;
    Phonon::MediaObject media;

    signals:
    void newSynonym(QString synonym);

private slots:
    void selectCartoon();
    void selectIcon();
    void selectVideo();
    void saveOnExit();
    void dontSaveOnExit();
    void updateSynonyms();
    void addingSynonym();

};

#endif // PHRASECREATOR_H
